package cn.kgm.admin.server;

import cn.kgm.security.annotation.EnableCustomConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 扫描所有cn.kgm下的包
 * 也可以配置的少一些，比如引入了kapi-data-api就扫描
 * cn.kgm.data.api
 * @author gutong
 * @ComponentScan(basePackages = {"cn.kgm.admin.entity"})
 * @EnableCustomConfig ruoyi自定义的注解,已经具备mapperScan功能
 * kapiLog 后台管理系统
 */
@EnableCustomConfig
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients(basePackages = {"cn.kgm.admin.api"})
public class KapiAdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(KapiAdminApplication.class);
    }
}
